package com.clz.appdesign.appdependence.baseKotlin.mvp

import java.util.*

/**
 * @author chenliangzhi
 * @date 2018/3/16
 * @describe 在BasePresenter里面去初始化View对象，同时提供释放View对象以防止内存溢出
 */

abstract class BasePresenter<T> {
    var params: Map<String, Any> = HashMap()
    var view: T? = null

    fun attach(view: T) {
        this.view = view
    }

    fun detach() {
        this.view = null
    }
}
